<%form_for(:attachment, :url => customer_attachments_url(@customer), :html => { :multipart => true, :target => 'upload_frame', :onsubmit => "spinnerOn('attachments'); return true;" }) do |form| %>
<div class="container">
    <label for="uploaded_data">
        Liitetiedosto:
    </label>
    <%=file_field 'attachment', 'uploaded_data' %>
    <div style="clear:both">
    </div>
</div>
<div class="buttons">
    <%=button_cancel 'attachments', customer_attachments_url(@customer) %><%=button_ok %>
</div>
<div style="clear:both">
</div>
<%end %>